﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.DTO.rpayBh127
{
    public class rpayBh127_request_base
    {
        public string pay_type { get; set; }
        public string partner { get; set; }
        public string nonce_str { get; set; }
        public string sign { get; set; }
        public string charset { get { return "UTF-8"; } }
    }

    public class rpayBh127_resp_base
    {
        public string status { get; set; }
        public string message { get; set; }
    }

    public class rpayBh127_merchant_reg_request : rpayBh127_request_base
    {
        public string name { get; set; }
        public string province { get; set; }
        public string city { get; set; }
        public string area { get; set; }
        public string address { get; set; }
        public string merch_name { get; set; }
        public string merch_shortname { get; set; }
        public string phone { get; set; }
        public string idcard { get; set; }
        public string bankno { get; set; }
        public string bankname { get; set; }
        public string bankbranch { get; set; }
        public string bankcode { get; set; }
        /// <summary>
        /// 费率
        /// </summary>
        public string feerate { get; set; }
        /// <summary>
        /// 代收费
        /// </summary>
        public string witdraw_fee { get; set; }
    }

    public class rpayBh127_merchant_reg_resp : rpayBh127_resp_base
    {
        public string result_code { get; set; }
        public string result_msg { get; set; }
        public string mch_id { get; set; }
        public string mch_status { get; set; }
    }

    public class rpayBh127_merchant_update_request: rpayBh127_request_base
    {
        public string phone { get; set; }
        /// <summary>
        /// 商户号
        /// </summary>
        public string mch_id { get; set; }
        /// <summary>
        /// 银行卡号
        /// </summary>
        public string bankno { get; set; }
        /// <summary>
        /// 费率
        /// </summary>
        public string feerate { get; set; }
        /// <summary>
        /// 代收费
        /// </summary>
        public string witdraw_fee { get; set; }
    }
    
    public class rpayBh127_pay_req: rpayBh127_request_base
    {
        public string mch_id { get; set; }
        public string out_order_no { get; set; }
        public string terminal_time { get; set; }
        public string total_fee { get; set; }
        public string other { get; set; }
        public string phoneNo { get; set; }
        public string customerName { get; set; }
        public string cerdId { get; set; }
        public string acctNo { get; set; }
        public string bankname_withdraw { get; set; }
        public string money_withdraw { get; set; }
        public string acctNo_withdraw { get; set; }
        public string customerNamewithdraw { get; set; }
        public string fee0 { get; set; }
        public string d0fee { get; set; }
        public string cvn2 { get; set; }
        public string exp_date { get; set; }
        public string notify_url { get; set; }
        public string return_url { get; set; }
    }

    public class rpayBh127_pay_resp: rpayBh127_resp_base
    {
        public string result_code { get; set; }
        public string result_msg { get; set; }
        public string partner { get; set; }
        public string total_fee { get; set; }
        public string sign { get; set; }
        public string out_order_no { get; set; }
        public string terminal_time { get; set; }
        public string order_no { get; set; }
        public string url { get; set; }
    }

    public class rpayBh127_pay_notify_req
    {
        public string status { get; set; }
        public string message { get; set; }
        public string result_code { get; set; }
        public string result_msg { get; set; }
        public string out_order_no { get; set; }
        public string order_no { get; set; }
        public string total_fee { get; set; }
        public string order_status { get; set; }
        public string settleStatus { get; set; }
        public string finish_date { get; set; }
        public string sign { get; set; }
    }
}
